<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::tSerial&lt; T &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">tSerial</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../d2/d06/classwheels_1_1t_serial-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::tSerial&lt; T &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::tSerial&lt; T &gt; 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/da5/classwheels_1_1t_serial__inherit__graph.png" border="0" usemap="#awheels_1_1t_serial_3_01_t_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1t_serial_3_01_t_01_4_inherit__map" id="awheels_1_1t_serial_3_01_t_01_4_inherit__map">
<area shape="rect" title=" " alt="" coords="5,688,180,1275"/>
<area shape="rect" href="../../d2/da4/classwheels_1_1i_serial.html" title=" " alt="" coords="6,5,179,640"/>
<area shape="poly" title=" " alt="" coords="95,655,95,688,90,688,90,655"/>
</map>
</div>
<div class="dynheader">
wheels::tSerial&lt; T &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/dde/classwheels_1_1t_serial__coll__graph.png" border="0" usemap="#awheels_1_1t_serial_3_01_t_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1t_serial_3_01_t_01_4_coll__map" id="awheels_1_1t_serial_3_01_t_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,688,180,1275"/>
<area shape="rect" href="../../d2/da4/classwheels_1_1i_serial.html" title=" " alt="" coords="6,5,179,640"/>
<area shape="poly" title=" " alt="" coords="95,655,95,688,90,688,90,655"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ae1eb6d47df66b440a443bda7fbc47a0e" id="r_ae1eb6d47df66b440a443bda7fbc47a0e"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae1eb6d47df66b440a443bda7fbc47a0e">realT</a> = typename std::remove_pointer&lt; typename std::decay&lt; T &gt; ::type &gt;::type</td></tr>
<tr class="separator:ae1eb6d47df66b440a443bda7fbc47a0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classwheels_1_1i_serial"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_types_classwheels_1_1i_serial')"><img src="../../closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">wheels::iSerial</a></td></tr>
<tr class="memitem:a5e585bb076d6a01c8c9cdab92e20c5ac inherit pub_types_classwheels_1_1i_serial" id="r_a5e585bb076d6a01c8c9cdab92e20c5ac"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> { <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acabc21e6484530fc9d0313cb816b733396">ONE</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5aca75872ef0066c09a9f7741c8d0c0b8b34">ONE_P_FIVE</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5aca0f82d86afa0f5dc965c5c15aca58dcfb">TWO</a>
 }</td></tr>
<tr class="separator:a5e585bb076d6a01c8c9cdab92e20c5ac inherit pub_types_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1661c3535b0ca7149121b8b00dddca0 inherit pub_types_classwheels_1_1i_serial" id="r_ab1661c3535b0ca7149121b8b00dddca0"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a> { <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0ab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0a6634c67f28ba9a80efe941b9519aa106">EVEN</a> = 1
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0a57a1355d5527355458c7cc08ba70bf94">ODD</a> = 2
 }</td></tr>
<tr class="separator:ab1661c3535b0ca7149121b8b00dddca0 inherit pub_types_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86e499ffc36867fed86449541837b295 inherit pub_types_classwheels_1_1i_serial" id="r_a86e499ffc36867fed86449541837b295"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a> { <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295ab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a7c144eae2e08db14c82e376603cc01f4">HARD</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a52e743143106c12bfd73aae547fc6e2e">SOFT</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a7db074166dc89fa0ffaf4d29fba1212c">KEEPBACK</a>
 }</td></tr>
<tr class="separator:a86e499ffc36867fed86449541837b295 inherit pub_types_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0046f5f91af625697c0474ae5084383 inherit pub_types_classwheels_1_1i_serial" id="r_ac0046f5f91af625697c0474ae5084383"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> { <br />
&#160;&#160;<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536">ERR_BASE</a> = -1000
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba">ERR_ALLOC_MEM</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366">ERR_DEV_OCCUPIED</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3">ERR_DEV_NOT_EXIST</a>
, <br />
&#160;&#160;<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804">ERR_SEND_DATA_EMPTY</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5">ERR_SET_PARAMS</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af">ERR_BAD_DEV</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c">ERR_BAD_FD</a>
, <br />
&#160;&#160;<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063">ERR_OPEN_SERIAL</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420">ERR_CLOSE_UART</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d">ERR_SEND_FAIL</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee">ERR_READ_DATA</a>
, <br />
&#160;&#160;<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c">ERR_ALREADY_OPENED</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1">SET_COM_FAIL</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b">ERR_DATA_NULL</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103">GET_COM_FAIL</a>
, <br />
&#160;&#160;<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac">ERR_STOP_READ_THD</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd">ERR_OVT</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e">ERR_ASYNC_WAIT_FAIL</a>
, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b">ERR_ASYNC_GET_RST_FAIL</a>
, <br />
&#160;&#160;<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a">OK</a> = 0
<br />
 }</td></tr>
<tr class="separator:ac0046f5f91af625697c0474ae5084383 inherit pub_types_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc49daaccbcc21e386b3fac67a479fcc inherit pub_types_classwheels_1_1i_serial" id="r_afc49daaccbcc21e386b3fac67a479fcc"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#afc49daaccbcc21e386b3fac67a479fcc">emErrCode</a> = <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a></td></tr>
<tr class="separator:afc49daaccbcc21e386b3fac67a479fcc inherit pub_types_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a73e281596218872016adee1680d66e94" id="r_a73e281596218872016adee1680d66e94"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a73e281596218872016adee1680d66e94">tSerial</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:a73e281596218872016adee1680d66e94"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建对象，设置窗口名称和接收到数据的时候回调响应  <br /></td></tr>
<tr class="separator:a73e281596218872016adee1680d66e94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2e9e82d2a0800f09ea5af214789b9a3" id="r_ad2e9e82d2a0800f09ea5af214789b9a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad2e9e82d2a0800f09ea5af214789b9a3">tSerial</a> (const std::string &amp;name, int baud, int char_len, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> s, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a> p, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a> f)</td></tr>
<tr class="memdesc:ad2e9e82d2a0800f09ea5af214789b9a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建并打开串口  <br /></td></tr>
<tr class="separator:ad2e9e82d2a0800f09ea5af214789b9a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60f901541b28cecab02e4133b7683dfd" id="r_a60f901541b28cecab02e4133b7683dfd"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a60f901541b28cecab02e4133b7683dfd">~tSerial</a> ()</td></tr>
<tr class="separator:a60f901541b28cecab02e4133b7683dfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90f1506ef984255632102f5f96c4d3fd" id="r_a90f1506ef984255632102f5f96c4d3fd"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a90f1506ef984255632102f5f96c4d3fd">open</a> (int baud, int char_len, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> s, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a> p, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a> f) final</td></tr>
<tr class="memdesc:a90f1506ef984255632102f5f96c4d3fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开串口。  <br /></td></tr>
<tr class="separator:a90f1506ef984255632102f5f96c4d3fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a227706f07a251df72a7efadb48669dd9" id="r_a227706f07a251df72a7efadb48669dd9"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a227706f07a251df72a7efadb48669dd9">close</a> () final</td></tr>
<tr class="separator:a227706f07a251df72a7efadb48669dd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21c9989eb705b839dd2621198413cc7f" id="r_a21c9989eb705b839dd2621198413cc7f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a21c9989eb705b839dd2621198413cc7f">send</a> (size_t len, const char *data) final</td></tr>
<tr class="memdesc:a21c9989eb705b839dd2621198413cc7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送数据。这个函数调用后立即返回，操作结果从回调中获取，因此这个函数执行返回后 并不一位置发送完成  <br /></td></tr>
<tr class="separator:a21c9989eb705b839dd2621198413cc7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49d25db90fbe011d03f001417a43ae51" id="r_a49d25db90fbe011d03f001417a43ae51"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a49d25db90fbe011d03f001417a43ae51">evtOpen</a> (std::function&lt; void(<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun) final</td></tr>
<tr class="memdesc:a49d25db90fbe011d03f001417a43ae51"><td class="mdescLeft">&#160;</td><td class="mdescRight">操作事件设置操作事件  <br /></td></tr>
<tr class="separator:a49d25db90fbe011d03f001417a43ae51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e7ecee621e0ea0b728d969378cc8268" id="r_a4e7ecee621e0ea0b728d969378cc8268"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4e7ecee621e0ea0b728d969378cc8268">evtClose</a> (std::function&lt; void(<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun) final</td></tr>
<tr class="separator:a4e7ecee621e0ea0b728d969378cc8268"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab10d43f10e14b6de6fa35fa2f983bf6a" id="r_ab10d43f10e14b6de6fa35fa2f983bf6a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab10d43f10e14b6de6fa35fa2f983bf6a">evtSend</a> (std::function&lt; void(size_t, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun) final</td></tr>
<tr class="separator:ab10d43f10e14b6de6fa35fa2f983bf6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a793df13a4061ac9fae3da1973c9a5e69" id="r_a793df13a4061ac9fae3da1973c9a5e69"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a793df13a4061ac9fae3da1973c9a5e69">evtRecv</a> (std::function&lt; void(size_t, const char *, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun) final</td></tr>
<tr class="separator:a793df13a4061ac9fae3da1973c9a5e69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab93078e80d178b29dfe7574d67ba087c" id="r_ab93078e80d178b29dfe7574d67ba087c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab93078e80d178b29dfe7574d67ba087c">reset</a> () final</td></tr>
<tr class="memdesc:ab93078e80d178b29dfe7574d67ba087c"><td class="mdescLeft">&#160;</td><td class="mdescRight">复位串口。关闭串口重新打开  <br /></td></tr>
<tr class="separator:ab93078e80d178b29dfe7574d67ba087c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a928cf98c35d817f0fada6e73cdf0f22c" id="r_a928cf98c35d817f0fada6e73cdf0f22c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a928cf98c35d817f0fada6e73cdf0f22c">reset</a> (int baud, int char_len, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> s, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a> p, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a> f) final</td></tr>
<tr class="separator:a928cf98c35d817f0fada6e73cdf0f22c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adab34befe1989c529c3bdca090667573" id="r_adab34befe1989c529c3bdca090667573"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adab34befe1989c529c3bdca090667573">is_open</a> () final</td></tr>
<tr class="memdesc:adab34befe1989c529c3bdca090667573"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口是否打开  <br /></td></tr>
<tr class="separator:adab34befe1989c529c3bdca090667573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ffd8163efa9ca6986948ba0f246e8f6" id="r_a7ffd8163efa9ca6986948ba0f246e8f6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7ffd8163efa9ca6986948ba0f246e8f6">run</a> (bool run) final</td></tr>
<tr class="memdesc:a7ffd8163efa9ca6986948ba0f246e8f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">启动串口循环  <br /></td></tr>
<tr class="separator:a7ffd8163efa9ca6986948ba0f246e8f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad16c2f986e64677c4318d8d623265e4e" id="r_ad16c2f986e64677c4318d8d623265e4e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad16c2f986e64677c4318d8d623265e4e">standby</a> () final</td></tr>
<tr class="memdesc:ad16c2f986e64677c4318d8d623265e4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">结束串口消息循环  <br /></td></tr>
<tr class="separator:ad16c2f986e64677c4318d8d623265e4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3289d3c1a6dae7bc87928dae415bcc4" id="r_ae3289d3c1a6dae7bc87928dae415bcc4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae3289d3c1a6dae7bc87928dae415bcc4">SetBufferSize</a> (size_t l) final</td></tr>
<tr class="separator:ae3289d3c1a6dae7bc87928dae415bcc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0cb50ce1dca8871b3cbfb601be82390" id="r_ac0cb50ce1dca8871b3cbfb601be82390"><td class="memItemLeft" align="right" valign="top">virtual native_handle_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac0cb50ce1dca8871b3cbfb601be82390">native_handle</a> ()</td></tr>
<tr class="memdesc:ac0cb50ce1dca8871b3cbfb601be82390"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取系统  <br /></td></tr>
<tr class="separator:ac0cb50ce1dca8871b3cbfb601be82390"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classwheels_1_1i_serial"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_classwheels_1_1i_serial')"><img src="../../closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">wheels::iSerial</a></td></tr>
<tr class="memitem:ab8aca3b048eddae137fe5a329ce0da91 inherit pub_methods_classwheels_1_1i_serial" id="r_ab8aca3b048eddae137fe5a329ce0da91"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab8aca3b048eddae137fe5a329ce0da91">evtClose</a> (std::function&lt; void(<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun)</td></tr>
<tr class="separator:ab8aca3b048eddae137fe5a329ce0da91 inherit pub_methods_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e98cc0bbb63d96c8033188ebefeb94e inherit pub_methods_classwheels_1_1i_serial" id="r_a7e98cc0bbb63d96c8033188ebefeb94e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a7e98cc0bbb63d96c8033188ebefeb94e">evtSend</a> (std::function&lt; void(size_t, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun)</td></tr>
<tr class="separator:a7e98cc0bbb63d96c8033188ebefeb94e inherit pub_methods_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a471a0264bf9600dc5b8305e9f409c812 inherit pub_methods_classwheels_1_1i_serial" id="r_a471a0264bf9600dc5b8305e9f409c812"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a471a0264bf9600dc5b8305e9f409c812">evtRecv</a> (std::function&lt; void(size_t, const char *, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun)</td></tr>
<tr class="separator:a471a0264bf9600dc5b8305e9f409c812 inherit pub_methods_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_classwheels_1_1i_serial"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_static_methods_classwheels_1_1i_serial')"><img src="../../closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">wheels::iSerial</a></td></tr>
<tr class="memitem:aa4da33b7874fb53fbb8197f6d2c85c9d inherit pub_static_methods_classwheels_1_1i_serial" id="r_aa4da33b7874fb53fbb8197f6d2c85c9d"><td class="memItemLeft" align="right" valign="top">static std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#aa4da33b7874fb53fbb8197f6d2c85c9d">errMsg</a> (<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">emErrCode</a> &amp;e)</td></tr>
<tr class="separator:aa4da33b7874fb53fbb8197f6d2c85c9d inherit pub_static_methods_classwheels_1_1i_serial"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename T&gt;<br />
class wheels::tSerial&lt; T &gt;</div>
<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00025">25</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="ae1eb6d47df66b440a443bda7fbc47a0e" name="ae1eb6d47df66b440a443bda7fbc47a0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1eb6d47df66b440a443bda7fbc47a0e">&#9670;&#160;</a></span>realT</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::realT = typename std::remove_pointer&lt; typename std::decay&lt; T &gt; ::type &gt;::type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="a73e281596218872016adee1680d66e94" name="a73e281596218872016adee1680d66e94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73e281596218872016adee1680d66e94">&#9670;&#160;</a></span>tSerial() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::tSerial </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建对象，设置窗口名称和接收到数据的时候回调响应 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">如果缓冲区内存分配失败，会抛出ERR_ALLOC_MEM</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00039">39</a> 行定义.</p>

</div>
</div>
<a id="ad2e9e82d2a0800f09ea5af214789b9a3" name="ad2e9e82d2a0800f09ea5af214789b9a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2e9e82d2a0800f09ea5af214789b9a3">&#9670;&#160;</a></span>tSerial() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::tSerial </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>baud</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>char_len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a></td>          <td class="paramname"><span class="paramname"><em>s</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a></td>          <td class="paramname"><span class="paramname"><em>p</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a></td>          <td class="paramname"><span class="paramname"><em>f</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建并打开串口 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">baud</td><td>波特率 </td></tr>
    <tr><td class="paramname">char_len</td><td>字长 </td></tr>
    <tr><td class="paramname">s</td><td>停止位 </td></tr>
    <tr><td class="paramname">p</td><td>校验位 </td></tr>
    <tr><td class="paramname">f</td><td>流控参数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">如果缓冲区内存分配失败，会抛出ERR_ALLOC_MEM</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00056">56</a> 行定义.</p>

</div>
</div>
<a id="a60f901541b28cecab02e4133b7683dfd" name="a60f901541b28cecab02e4133b7683dfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60f901541b28cecab02e4133b7683dfd">&#9670;&#160;</a></span>~tSerial()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::~<a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">tSerial</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00064">64</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a227706f07a251df72a7efadb48669dd9" name="a227706f07a251df72a7efadb48669dd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a227706f07a251df72a7efadb48669dd9">&#9670;&#160;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::close </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ad87bdf24e0f27d6285410e4d133c9ab1">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00078">78</a> 行定义.</p>

</div>
</div>
<a id="a4e7ecee621e0ea0b728d969378cc8268" name="a4e7ecee621e0ea0b728d969378cc8268"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e7ecee621e0ea0b728d969378cc8268">&#9670;&#160;</a></span>evtClose()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::evtClose </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00096">96</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/de7/classwheels_1_1t_serial_a4e7ecee621e0ea0b728d969378cc8268_cgraph.png" border="0" usemap="#ad4/de7/classwheels_1_1t_serial_a4e7ecee621e0ea0b728d969378cc8268_cgraph" alt=""/></div>
<map name="ad4/de7/classwheels_1_1t_serial_a4e7ecee621e0ea0b728d969378cc8268_cgraph" id="ad4/de7/classwheels_1_1t_serial_a4e7ecee621e0ea0b728d969378cc8268_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,173,32"/>
<area shape="rect" href="../../d2/da4/classwheels_1_1i_serial.html#ab8aca3b048eddae137fe5a329ce0da91" title=" " alt="" coords="221,5,387,32"/>
<area shape="poly" title=" " alt="" coords="173,16,205,16,205,21,173,21"/>
</map>
</div>

</div>
</div>
<a id="a49d25db90fbe011d03f001417a43ae51" name="a49d25db90fbe011d03f001417a43ae51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49d25db90fbe011d03f001417a43ae51">&#9670;&#160;</a></span>evtOpen()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::evtOpen </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(<a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>操作事件设置操作事件 </p>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a3b795a5175156cdb27960db3b6ead564">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00093">93</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/de7/classwheels_1_1t_serial_a49d25db90fbe011d03f001417a43ae51_cgraph.png" border="0" usemap="#ad4/de7/classwheels_1_1t_serial_a49d25db90fbe011d03f001417a43ae51_cgraph" alt=""/></div>
<map name="ad4/de7/classwheels_1_1t_serial_a49d25db90fbe011d03f001417a43ae51_cgraph" id="ad4/de7/classwheels_1_1t_serial_a49d25db90fbe011d03f001417a43ae51_cgraph">
<area shape="rect" title="操作事件设置操作事件" alt="" coords="5,5,170,32"/>
<area shape="rect" href="../../d2/da4/classwheels_1_1i_serial.html#a3b795a5175156cdb27960db3b6ead564" title="操作事件设置操作事件" alt="" coords="218,5,381,32"/>
<area shape="poly" title=" " alt="" coords="170,16,202,16,202,21,170,21"/>
</map>
</div>

</div>
</div>
<a id="a793df13a4061ac9fae3da1973c9a5e69" name="a793df13a4061ac9fae3da1973c9a5e69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a793df13a4061ac9fae3da1973c9a5e69">&#9670;&#160;</a></span>evtRecv()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::evtRecv </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(size_t, const char *, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00102">102</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/de7/classwheels_1_1t_serial_a793df13a4061ac9fae3da1973c9a5e69_cgraph.png" border="0" usemap="#ad4/de7/classwheels_1_1t_serial_a793df13a4061ac9fae3da1973c9a5e69_cgraph" alt=""/></div>
<map name="ad4/de7/classwheels_1_1t_serial_a793df13a4061ac9fae3da1973c9a5e69_cgraph" id="ad4/de7/classwheels_1_1t_serial_a793df13a4061ac9fae3da1973c9a5e69_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,170,32"/>
<area shape="rect" href="../../d2/da4/classwheels_1_1i_serial.html#a471a0264bf9600dc5b8305e9f409c812" title=" " alt="" coords="218,5,381,32"/>
<area shape="poly" title=" " alt="" coords="170,16,202,16,202,21,170,21"/>
</map>
</div>

</div>
</div>
<a id="ab10d43f10e14b6de6fa35fa2f983bf6a" name="ab10d43f10e14b6de6fa35fa2f983bf6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab10d43f10e14b6de6fa35fa2f983bf6a">&#9670;&#160;</a></span>evtSend()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::evtSend </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(size_t, <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00099">99</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/de7/classwheels_1_1t_serial_ab10d43f10e14b6de6fa35fa2f983bf6a_cgraph.png" border="0" usemap="#ad4/de7/classwheels_1_1t_serial_ab10d43f10e14b6de6fa35fa2f983bf6a_cgraph" alt=""/></div>
<map name="ad4/de7/classwheels_1_1t_serial_ab10d43f10e14b6de6fa35fa2f983bf6a_cgraph" id="ad4/de7/classwheels_1_1t_serial_ab10d43f10e14b6de6fa35fa2f983bf6a_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,169,32"/>
<area shape="rect" href="../../d2/da4/classwheels_1_1i_serial.html#a7e98cc0bbb63d96c8033188ebefeb94e" title=" " alt="" coords="217,5,379,32"/>
<area shape="poly" title=" " alt="" coords="169,16,201,16,201,21,169,21"/>
</map>
</div>

</div>
</div>
<a id="adab34befe1989c529c3bdca090667573" name="adab34befe1989c529c3bdca090667573"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adab34befe1989c529c3bdca090667573">&#9670;&#160;</a></span>is_open()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::is_open </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>串口是否打开 </p>
<dl class="section return"><dt>返回</dt><dd>打开返回true , 否则返回false </dd></dl>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a7e4804af8e9971965685ccbb4500f9fc">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00119">119</a> 行定义.</p>

</div>
</div>
<a id="ac0cb50ce1dca8871b3cbfb601be82390" name="ac0cb50ce1dca8871b3cbfb601be82390"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0cb50ce1dca8871b3cbfb601be82390">&#9670;&#160;</a></span>native_handle()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual native_handle_t <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::native_handle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>读取系统 </p>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a568297e82df18819a5b263132437d970">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00139">139</a> 行定义.</p>

</div>
</div>
<a id="a90f1506ef984255632102f5f96c4d3fd" name="a90f1506ef984255632102f5f96c4d3fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90f1506ef984255632102f5f96c4d3fd">&#9670;&#160;</a></span>open()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::open </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>baud</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>char_len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a></td>          <td class="paramname"><span class="paramname"><em>s</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a></td>          <td class="paramname"><span class="paramname"><em>p</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a></td>          <td class="paramname"><span class="paramname"><em>f</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>打开串口。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">baud</td><td>波特率 </td></tr>
    <tr><td class="paramname">char_len</td><td>字符长度 </td></tr>
    <tr><td class="paramname">s</td><td>停止位 </td></tr>
    <tr><td class="paramname">p</td><td>校验位 </td></tr>
    <tr><td class="paramname">f</td><td>流控 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">成功返回OK,失败返回错误代码</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5c97a1c2a4ad0302e04f633789742ae4">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00074">74</a> 行定义.</p>

</div>
</div>
<a id="ab93078e80d178b29dfe7574d67ba087c" name="ab93078e80d178b29dfe7574d67ba087c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab93078e80d178b29dfe7574d67ba087c">&#9670;&#160;</a></span>reset() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::reset </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>复位串口。关闭串口重新打开 </p>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a0841ac68972c81b88a01537d92b18984">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00108">108</a> 行定义.</p>

</div>
</div>
<a id="a928cf98c35d817f0fada6e73cdf0f22c" name="a928cf98c35d817f0fada6e73cdf0f22c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a928cf98c35d817f0fada6e73cdf0f22c">&#9670;&#160;</a></span>reset() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::reset </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>baud</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>char_len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a></td>          <td class="paramname"><span class="paramname"><em>s</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a></td>          <td class="paramname"><span class="paramname"><em>p</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a></td>          <td class="paramname"><span class="paramname"><em>f</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#af312457e1f3828f86f230cb599b872a5">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00112">112</a> 行定义.</p>

</div>
</div>
<a id="a7ffd8163efa9ca6986948ba0f246e8f6" name="a7ffd8163efa9ca6986948ba0f246e8f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ffd8163efa9ca6986948ba0f246e8f6">&#9670;&#160;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::run </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>run</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>启动串口循环 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">run[</td><td>I ], true，启动；false停止 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ab17d3719e9133baba1a3ed852210e143">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00126">126</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_cgraph.png" border="0" usemap="#ad4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_cgraph" alt=""/></div>
<map name="ad4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_cgraph" id="ad4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_cgraph">
<area shape="rect" title="启动串口循环" alt="" coords="5,29,139,56"/>
<area shape="poly" title=" " alt="" coords="48,30,44,21,47,11,57,5,72,3,88,5,97,12,94,16,86,10,72,8,59,10,51,14,50,20,53,28"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_icgraph.png" border="0" usemap="#ad4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_icgraph" alt=""/></div>
<map name="ad4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_icgraph" id="ad4/de7/classwheels_1_1t_serial_a7ffd8163efa9ca6986948ba0f246e8f6_icgraph">
<area shape="rect" title="启动串口循环" alt="" coords="5,29,139,56"/>
<area shape="poly" title=" " alt="" coords="94,16,86,10,72,8,59,10,51,14,50,20,53,28,48,30,44,21,47,11,57,5,72,3,88,5,97,12"/>
</map>
</div>

</div>
</div>
<a id="a21c9989eb705b839dd2621198413cc7f" name="a21c9989eb705b839dd2621198413cc7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21c9989eb705b839dd2621198413cc7f">&#9670;&#160;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::send </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>发送数据。这个函数调用后立即返回，操作结果从回调中获取，因此这个函数执行返回后 并不一位置发送完成 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">len</td><td>， 要发送的数据长度 </td></tr>
    <tr><td class="paramname">data,要发送的数据</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#afcb400225050bb4d269ad4e24b9cfd3d">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00087">87</a> 行定义.</p>

</div>
</div>
<a id="ae3289d3c1a6dae7bc87928dae415bcc4" name="ae3289d3c1a6dae7bc87928dae415bcc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3289d3c1a6dae7bc87928dae415bcc4">&#9670;&#160;</a></span>SetBufferSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::SetBufferSize </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>l</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00135">135</a> 行定义.</p>

</div>
</div>
<a id="ad16c2f986e64677c4318d8d623265e4e" name="ad16c2f986e64677c4318d8d623265e4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad16c2f986e64677c4318d8d623265e4e">&#9670;&#160;</a></span>standby()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html">wheels::tSerial</a>&lt; T &gt;::standby </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>结束串口消息循环 </p>

<p>实现了 <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html#a15753b84ca120807c482260c1ff935b2">wheels::iSerial</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a> 第 <a class="el" href="../../d1/dc5/serial_8hpp_source.html#l00132">132</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../d1/dc5/serial_8hpp_source.html">serial.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
